package com.oracle.lingshangejia.utils;

/**
 * @松 on 2019/7/4 13:17
 * 禁止按钮重复点击
 */
public class LastClickUtils {
    private static long lastClick ;

    public static boolean isLastClick(String content){

        if (System.currentTimeMillis() - lastClick < 1500) {
            MyToast.show(content);
            lastClick = System.currentTimeMillis();
            return false;
        }
        lastClick = System.currentTimeMillis();
        return true;
   }

}
